package edu.hawaii.duedates.configuration.jaxb;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 * Test case for Library jaxb class.
 * @author Creighton Okada
 */
public class TestLibrary {
  /**
   * Tests library functionality.
   */
  @Test
  public void testLibrary() {
    Library lib = new Library();
    String login = "login";
    String name = "name";
    String password = "password";
    String clazz = "clazz";
    
    lib.setLogin(login);
    lib.setName(name);
    lib.setPassword(password);
    lib.setClazz(clazz);
    assertEquals("Assert correct login.", login, lib.getLogin());
    assertEquals("Assert correct name.", name, lib.getName());
    assertEquals("Assert correct password.", password, lib.getPassword());
    assertEquals("Assert correct class.", clazz, lib.getClazz());
  }
}
